package com.material.operation.aos;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author : hongwei.zhang
 * @className : operation - MaterialsAo
 * @description : 材料接口接收参数实体
 * @date : 2020-11-16 21:01
 */

@Getter
@AllArgsConstructor
@NoArgsConstructor
public class MaterialsAo {
    private int MinTensileStrength;
    private int MaxTensileStrength;
    private int MinElongationPercentage;
    private int MaxElongationPercentage;

    public void setMinTensileStrength(String minTensileStrength) {
        MinTensileStrength = Integer.parseInt((minTensileStrength == null || "".equals(minTensileStrength)) ? "0" : minTensileStrength);
    }

    public void setMaxTensileStrength(String maxTensileStrength) {
        MaxTensileStrength = Integer.parseInt((maxTensileStrength == null || "".equals(maxTensileStrength)) ? "0" : maxTensileStrength);
    }

    public void setMinElongationPercentage(String minElongationPercentage) {
        MinElongationPercentage = Integer.parseInt((minElongationPercentage == null || "".equals(minElongationPercentage)) ? "0" : minElongationPercentage);
    }

    public void setMaxElongationPercentage(String maxElongationPercentage) {
        MaxElongationPercentage = Integer.parseInt((maxElongationPercentage == null || "".equals(maxElongationPercentage)) ? "0" : maxElongationPercentage);
    }
}
